package com.shen.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shen.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shen.eduservice.entity.frontvo.CourseFrontVo;
import com.shen.eduservice.entity.vo.CourcePublishVo;
import com.shen.eduservice.entity.vo.CourseInfoVo;
import com.shen.eduservice.entity.vo.CourseWebVo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author shenkaituo
 * @since 2020-06-21
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    //根据课程id得到课程信息
    CourseInfoVo getCourceInfo(String courseID);

    void updateCourceInfo(CourseInfoVo courseInfoVo);

    CourcePublishVo PublishCourseInfo(String id);

    boolean removeCourse(String id);

    Map<String, Object> getCourseFrontList(Page<EduCourse> coursePage, CourseFrontVo courseFrontVo);

    CourseWebVo getBaseCourseInfo(String id);
}
